

const canvas = document.querySelector('canvas')
//获取webgl上下文
const gl=canvas.getContext('webgl')
console.log("object",gl);
//int num  = 1 //clearColor 取值范围0,1
gl.clearColor(1.0,0.0,0.0,1.0)
//清空颜色缓冲区
gl.clear(gl.COLOR_BUFFER_BIT)